package com.yx.changdao.common.data;

import org.nutz.mvc.annotation.DELETE;

/**
 * @Title: ResultCodeEnum
 * @Description: 返回业务状态
 * @Auther: Zhangjiashun
 * @Version: 1.0
 * @create 2019/11/5 15:59
 */
public enum ResultCodeEnum {
    SUCCESS(1, "成功"),
    ERROR(0, "失败"),
    UNKNOWN_REASON(0, "未知异常"),
    DELETE(2,"成功");

    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
